<html>
<head>
	<script type="text/javascript">
		document.getElementById("botao").style.display="none";
   
		functon linkpagseguro(){
			document.getElementById("botao").style.display="none";
		}
   </script>
</head>

<body>
    Pagamento do Aluguel<br>
	<form action="pagamento.php" method="POST">
		<input type="text" name="idpagamento" value="<?PHP if(isset($_POST['idpagamento'])){ echo $_POST['idpagamento']; } ?>"/>
		<input type="submit" value="Liberar Link Pagamento"/>
		<br/>
		
		<div>
		<?PHP
			if(isset($_POST["idpagamento"])){
				echo '<a href="">';
					echo '<img src="pagar.gif"/>';
				echo '</a>';
			}
		?>
		</div>
		
	</form>
    
</body>
</html>